#include "simplekdtree.h"
#include "Common/gltools.h"
#include "glm.h"
#include "sampleTool.h"
KDTree Tree;
void BuildKDTree(GLMmodel *object)
{
	
	for(GLuint i=0;i<object->numvertices;i++){
		float point[3];
		memcpy(point,object->vertices+i*3+0,sizeof(float)*3);
		Tree.add(point);
	}
}